﻿using System;
using System.Collections.Generic;
using System.Text;
using Business.Entitys;
using DataAccess;
using DataAccess.Entitys;

namespace Business.Process
{
    class ProcessUser : IProcessUser
    {
        public User GetUser(string uid)
        {
            IAccessUser accessUser = (IAccessUser)Utils.WebFramework.Framework.GetFramework().GetDataAccess("AccessUser");
            MetaUser metaUser = accessUser.GetMetaUser(uid);
            if (metaUser != null)
            {
                return User.From(metaUser);
            }

            return null;
        }
    }
}
